package com.example.demo.action.client;/**
 * Created by kete on 2018-11-30.
 */

import com.example.demo.action.common.CustomProtocol;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 作者：kete
 * 创建时间：2018-11-30 16:41
 * 功能描述：
 * 版本：
 */
@Configuration
public class CustomConfig {

    @Value("${channel.id}")
    private long id ;

    @Bean
    public CustomProtocol getCustomProtocol(){

        CustomProtocol customProtocol = new CustomProtocol(id,"ping");

        return customProtocol;
    }
}
